#include "lino.h"
#include "lifeprog.h"
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>  
main(int argc, char ** argv)
{     //   int outf = open("pipe",O_WRONLY|O_NONBLOCK);
           int outf=4;
      //   int inf = open("pipe2",O_RDONLY );//|O_NONBLOCK);
	   int inf=3;
	 write(outf,"hello",6);
        char inb[100];
	int count;
       do{count = read(inf,inb,6);} while (count <=0);
	printf(" output from pipedemo %d %s\n",count,inb);
	


}
